import {requests} from "@/api/request";
import type { PolylineData } from "@/class/map/Polyline";

/**
 * 上传新数据
 * @param data
 * @returns {*}
 */
export const reqPostPolyline =(data:PolylineData)=>requests({
    url:'/polyline',
    data,
    method:"post"
})
/**
 * 上传数据
 * @param data
 * @returns {*}
 */
export const reqPutPolyline = (data:PolylineData)=>requests({
    url:'/polyline',
    data,
    method:"put"
})
